From 26ec90203ab954a15a36e6fcf4ca0ee496adeb14 Mon Sep 17 00:00:00 2001 From: justbur Date: Tue, 29 Sep 2015 10:54:29 -0400 Subject: [PATCH] Add preserve-size option to side-window display Beginning of fix for #67 --- which-key.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index be2db0c06c1..fa827f5b49b 100644 --- a/which-key.el +++ b/which-key.el @@ -751,7 +751,8 @@ call signature in different emacs versions" "Show which-key buffer when popup type is side-window." (let* ((side which-key-side-window-location) (alist '((window-width . which-key--fit-buffer-to-window-horizontally) - (window-height . (lambda (w) (fit-window-to-buffer w nil 1)))))) + (window-height . (lambda (w) (fit-window-to-buffer w nil 1))) + (preserve-size . (t . t))))) ;; Note: `display-buffer-in-side-window' and `display-buffer-in-major-side-window' ;; were added in Emacs 24.3 -- 2.30.2